/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.jmda.util.gui.awt.graphics;

import java.awt.Point;

import de.jmda.util.gui.awt.graphics.RelationEndpoint.Style;

/**
 *
 */
public abstract class RelationEndpointFactory
{
	public static RelationEndpoint newRelationEndpointDown(
			Point   location,
			int     length,
			Style   style,
			boolean dashed,
			int     arrowHeadSize)
	{
		return new RelationEndpoint(
				location,
				length,
				style,
				dashed,
				arrowHeadSize,
				RelationEndpoint.Orientation.DOWN);
	}

	public static RelationEndpoint newRelationEndpointUp(
			Point   location,
			int     length,
			Style   style,
			boolean dashed,
			int     arrowHeadSize)
	{
		return new RelationEndpoint(
				location,
				length,
				style,
				dashed,
				arrowHeadSize,
				RelationEndpoint.Orientation.UP);
	}

	public static RelationEndpoint newRelationEndpointLeft(
			Point   location,
			int     length,
			Style   style,
			boolean dashed,
			int     arrowHeadSize)
	{
		return new RelationEndpoint(
				location,
				length,
				style,
				dashed,
				arrowHeadSize,
				RelationEndpoint.Orientation.LEFT);
	}

	public static RelationEndpoint newRelationEndpointRight(
			Point   location,
			int     length,
			Style   style,
			boolean dashed,
			int     arrowHeadSize)
	{
		return new RelationEndpoint(
				location,
				length,
				style,
				dashed,
				arrowHeadSize,
				RelationEndpoint.Orientation.RIGHT);
	}
}